﻿using OpenAdmin.Application.Services.Dtos;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OpenAdmin.Application.Services
{
    /// <summary>
    /// 菜单服务
    /// </summary>
    public interface IMenuService
    {
        /// <summary>
        /// 获取菜单列表
        /// </summary>
        /// <returns></returns>
        Task<List<MenusResponseDto>> GetMenus();

        /// <summary>
        /// 添加菜单
        /// </summary>
        /// <param name="requestDto"></param>
        /// <returns></returns>
        Task AddMenu(AddMenuRequestDto requestDto);

        /// <summary>
        /// 更新菜单
        /// </summary>
        /// <param name="requestDto"></param>
        Task EditMenu(EditMenuRequestDto requestDto);

        /// <summary>
        /// 删除菜单
        /// </summary>
        /// <param name="id"></param>
        Task DeleteMenu(int id);
    }
}
